#include <iostream>
#include <string>

using namespace std;

class Student {
public:
    // 构造函数
    Student(string name, int age, string gender, int id) {
        this->name = name;
        this->age = age;
        this->gender = gender;
        this->id = id;
    }
    
    // 获取学生信息
    string getName() { return name; }
    int getAge() { return age; }
    string getGender() { return gender; }
    int getId() { return id; }
    
    // 修改学生信息
    void setName(string name) { this->name = name; }
    void setAge(int age) { this->age = age; }
    void setGender(string gender) { this->gender = gender; }
    void setId(int id) { this->id = id; }
    
    // 输出学生信息
    void print() {
        cout << "Name: " << getName() << endl;
        cout << "Age: " << getAge() << endl;
        cout << "Gender: " << getGender() << endl;
        cout << "ID: " << getId() << endl;
    }
    
private:
    string name;
    int age;
    string gender;
    long long int id;
};

int main() {
	string name1;
	int age1;
	string Gender1;
	long long int ID1;
    // 初始化学生信息
    Student s("Tom", 20, "Male", 1001);
    
    // 输出学生信息
    s.print();
    
    // 修改学生信息
    cout<<"请按照姓名，年龄，性别，编号输入想要修改的学生信息"<<'\n';
    cin>>name1>>age1>>Gender1>>ID1;
    s.setName(name1);
    s.setAge(age1);
    s.setGender(Gender1);
    s.setId(ID1);
    
    // 再次输出学生信息
    s.print();
    
    return 0;
}